
CURRENT_DIR := $(dir $(realpath $(firstword $(MAKEFILE_LIST))))

VCS_OPTION += -kdb -timesacle=1ns/1ps -full64 -sverilog -lca -debug_access+all

all:tb1

clean:
	- rm -rf temp

%:
	- mkdir temp
	- mkdir temp/$@
	cd temp/$@;\
	vcs $(VCS_OPTION) $(CURRENT_DIR)$@.sv;\
	./simv > $(CURRENT_DIR)$@.log;cat $(CURRENT_DIR)$@.log

